package com.jgj.cloud.order.feign;

import com.jgj.cloud.order.user.emtity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name="my-cloud-user")
public interface UserFeignClient {
    @GetMapping("/api/user/findUserById/{userId}")
    User findUserById(@PathVariable("userId") Long userId);
}

